<?php

namespace App\Models;

use App\Models\Traits\ProjectTrait;
use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\ProjectComment
 *
 * @property int $id
 * @property int $project_id 项ID
 * @property int $row_id 行ID
 * @property int $user_id 评论人
 * @property int $parent_id 父级评论
 * @property string $parents 父级集合
 * @property string|null $content 评论信息
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProjectComment newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProjectComment newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProjectComment query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProjectComment whereContent($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProjectComment whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProjectComment whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProjectComment whereParentId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProjectComment whereParents($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProjectComment whereProjectId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProjectComment whereRowId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProjectComment whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\ProjectComment whereUserId($value)
 * @mixin \Eloquent
 * @property-read \App\Models\Project $project
 */
class ProjectComment extends Model
{
    use ProjectTrait;
    
    protected $fillable = [
        'project_id',
        'row_id',
        'user_id',
        'parent_id',
        'parents',
        'content',
    ];
}
